import request from '@/utils/request'

// 查询数据字典对照翻译列表
export function listDictionary(query) {
  return request({
    url: '/safety/dictionary/list',
    method: 'get',
    params: query
  })
}

// 查询数据字典对照翻译列表group
export function groupList(query) {
    return request({
      url: '/safety/dictionary/groupList',
      method: 'get',
      params: query
    })
  }


// 查询数据字典对照翻译详细
export function getDictionary(id) {
  return request({
    url: '/safety/dictionary/' + id,
    method: 'get'
  })
}

// 新增数据字典对照翻译
export function addDictionary(data) {
  return request({
    url: '/safety/dictionary',
    method: 'post',
    data: data
  })
}

// 修改数据字典对照翻译
export function updateDictionary(data) {
  return request({
    url: '/safety/dictionary',
    method: 'put',
    data: data
  })
}

// 删除数据字典对照翻译
export function delDictionary(id) {
  return request({
    url: '/safety/dictionary/' + id,
    method: 'delete'
  })
}
